import os
__all__=["config"]
class Config:
    LEVEL = "DEBUG"
    DB_URI = 'mysql+pymysql://root:bidding@123@127.0.0.1:6989/manjian?charset=utf8'

class LocalDebugConfig(Config):
    DB_URI = 'mysql://root:bidding@123@47.94.138.204:6989/manjian?charset=utf8'
    LEVEL = "DEBUG"
cnf_name=os.getenv("env","product")
configEnv={"product":Config,
            "localdebug":LocalDebugConfig}

config=configEnv[cnf_name]